package cn.edu.scau.cmi.dengshixin.adapter;

import java.util.ArrayList;

public class SortUtil {

	public static void sortInt(ArrayList<Integer> intList) {
		for(int i=0; i<intList.size(); i++) {
			int index = i;
			for(int j=i+1; j<intList.size(); j++) {
				index = intList.get(index)< intList.get(j) ? index : j;
			}
			if(index == i) continue;
			Integer tmp = intList.get(i);
			intList.set(i, intList.get(index));
			intList.set(index, tmp);
		}
	}
	
}
